package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@Slf4j
//使用过滤器需开启的注解
//@ServletComponentScan
@EnableTransactionManagement
@EnableCaching //开启缓存功能 纯注解实现
public class ReggieDevApplication {

    public static void main(String[] args) {

        log.info("项目启动成功...");
        SpringApplication.run(ReggieDevApplication.class, args);

    }

}
